Ruby On Rails Interview Questions and Answers
Question: HOW CAN YOU IMPLEMENT A SEARCH FEATURE THAT SEARCHES FOR MULTIPLE MODELS in Ruby on Rails?Answer:If you are using acts_as_solr for your search you will be able to use multi_solr_search to enable search across multiple models. Also, you can configure Sunspot/Solr to support search across multiple models. Sphinx, another powerful search server can be used to search across multiple models and it works great. |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is Ruby On Rails?
- Why Ruby on Rails?
- Explain how (almost) everything is an object in Ruby.
- What are Gems and which are some of your favorites?
- How would you declare and use a constructor in Ruby?